package edu.sctu.zhangwang.month201505.day20150517.TwoText;

/**
 * Created by Administrator on 2015/5/21 0021.
 */
public class StudentData {

    TeaCher[] teacher = new TeaCher[2];

    public TeaCher[] getTeacher() {
        TextCourse course1 = new TextCourse();
        course1.course[0] = "物理";
        course1.course[1] = "数学";
        course1.course[2] = "语文";
        TextCourse course2 = new TextCourse();
        course2.course[0] = "物理";
        course2.course[1] = "计算机";
        course2.course[2] = "数学";
        TextCourse course3 = new TextCourse();
        course3.course[0] = "语文";
        course3.course[1] = "计算机";
        course3.course[2] = "物理";
        TextCourse[] course = {course1,course2,course3};

        TeaCher teacher = new TeaCher();
        teacher.number = 100123;
        teacher.name = "张丽";
        teacher.sex = "女";
        teacher.teaTile = "教授";
        teacher.course = "计算机";
        Student[] student1 = new Student[3];
        for (int i = 0; i < 3; i++) {
            Student student = new Student();
            student.number = 1000011 + i;
            student.name = "王五" + i;
            student.sex = "男" + i;
            student.age = 18 + i;
            student.score = 59 + i;
            student.address = "成都市";

            student1[i] = student;
            student1[i].textCourse[i] = course[i+1];
    }



//        teacher.student = student1;

        TeaCher teacher1 = new TeaCher();
        teacher1.number = 100101;
        teacher1.name = "诸葛亮";
        teacher1.sex = "男";
        teacher1.teaTile = "副教授";
        teacher1.course = "物理";
        Student[] student2 = new Student[3];
        for (int i = 0; i < 3; i++) {
            Student student = new Student();
            student.number = 1000011 + i;
            student.name = "小红" + i;
            student.sex = "女" + i;
            student.age = 15 + i;
            student.score = 58 + i;
            student.address = "四川省";

            student2[i] = student;
        }

//        teacher1.student = student2;

        this.teacher[0] = teacher;
        this.teacher[1] = teacher1;


        return this.teacher;
    }

    public Student[] getCourse(){
        TextCourse course1 = new TextCourse();

        course1.course[0] = "物理";
        course1.course[1] = "数学";
        course1.course[2] = "语文";

        TextCourse course2 = new TextCourse();
        course2.course[0] = "物理";
        course2.course[1] = "计算机";
        course2.course[2] = "数学";
        TextCourse course3 = new TextCourse();
        course3.course[0] = "语文";
        course3.course[1] = "计算机";
        course3.course[2] = "物理";

        TextCourse[] course = {course1,course2,course3};

        Student[] students = new Student[3];
        for (int i = 0;i<3;i++){
            Student student = new Student();
            student.name = "小王"+i;
            student.textCourse[i] = course[i];
            students[i] = student;
        }
        return students;
    }
}
